<?php
/* @var $this CameraController */
/* @var $model Camera */
/* @var $form CActiveForm */
?>

<div class="form">
	
	<?php
	$properties = array(
		'id'=>'camera-form',
		'enableAjaxValidation'=>false,
	);
	$form = $this->beginWidget('CActiveForm', $properties);
	?>

	<p class="note">
		Fields with <span class="required">*</span> are required.
	</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'sequence');
		echo $form->textField($model, 'sequence');
		echo $form->error($model, 'sequence');
		?>
	</div>

	<div class="row">
		<?php
		echo $form->labelEx($model, 'location');
		$htmlOptions = array('size'=>60, 'maxlength'=>255);
		echo $form->textField($model, 'location', $htmlOptions);
		echo $form->error($model, 'location');
		?>
	</div>

	<div class="row buttons">
		<?php
		$label = $model->isNewRecord ? 'Create' : 'Save';
		echo CHtml::submitButton($label);
		?>
	</div>
	
	<?php $this->endWidget(); ?>

</div><!-- form -->